## build CMakeList of the executable file

# cmake_minimum_required(VERSION 3.16)

message(STATUS "target modadd name:" ${libModAdd})

if ( ${libModAdd} STREQUAL "")
    message(STATUS "libModAdd is not set")
else ()
    message(STATUS "libModAdd is set : " ${libModAdd})
endif ()

# set (moduleName add)

set(moduleMajorVer 1)
set(moduleMinorVer 0)

# file(GLOB SRC_FILES "src/*.cpp")
# project(mycheck)

#include(../../commCfg.cmake)

include_directories(./)

set(SOURCE_FILES add.cpp )

#add_library(add STATIC ${SOURCE_FILES})
add_library(${libModAdd} SHARED ${SOURCE_FILES})

set_target_properties(${libModAdd} PROPERTIES VERSION ${moduleMajorVer}.${moduleMinorVer} SOVERSION ${moduleMajorVer})

install(TARGETS ${libModAdd}
    RUNTIME DESTINATION bin
    LIBRARY DESTINATION lib
    PUBLIC_HEADER DESTINATION include
)

install(FILES add.h DESTINATION include)

# target_include_directories(${EXECUTABLE_NAME} PUBLIC add)
